﻿#ifndef EXCELEXPORTTHREAD_H
#define EXCELEXPORTTHREAD_H

#include <QThread>
#include "excelbase.h"

class ExcelExportThread : public QThread
{
    Q_OBJECT
public:
    explicit ExcelExportThread(QObject *parent = nullptr);

    void setFileName(QString fileName);

    void setExportData(QList<QList<QVariant>> data);
protected:
    void run();

signals:
    //导出数据到Excel完成
    void exportDataDone();

public slots:

private:
    QString fileName;
    QScopedPointer<ExcelBase> m_xls;
    QList<QList<QVariant>> m_datas;
};

#endif // EXCELEXPORTTHREAD_H
